package com.hitqz.robot.daemon.quartz.dao;

import com.hitqz.robot.daemon.quartz.model.*;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.service.annotation.HttpExchange;

/**
 * @author xupkun
 * @date 2024/10/14
 */
@HttpExchange
public interface AgvDao {

    @PostMapping("/agv/pick")
    AgvCallResult pick(@RequestBody AgvPickParams agvPickParams);

    @PostMapping("/agv/store")
    AgvCallResult store(@RequestBody AgvStoreParams agvPickParams);


    @PostMapping("/agv/run")
    AgvCallResult run(@RequestBody AgvStoreParams agvPickParams);

    @PostMapping("/agv/workmode")
    AgvCallResult workmode(@RequestBody AgvWorkModeParams workModeParams);

    @PostMapping("/agv/poweron")
    CallAgvResult powerOn(@RequestBody PowerRobotParams agvPickParams);


    @PostMapping("/agv/poweroff")
    CallAgvResult powerOff(@RequestBody PowerRobotParams agvPickParams);

    @PostMapping("/agv/fault")
    AgvResult fault(@RequestBody AgvFaultParams agvPickParams);



    @PostMapping("/agv/arrive/")
    AgvResult arrive(@RequestBody AgvArriveResponseParams agvArriveResponseParams);


}
